<?php

/**
 * Marcas form.
 *
 * @package    tercermilenio
 * @subpackage form
 * @author     Your name here
 */
class MarcasForm extends BaseMarcasForm {

    public function configure() {

    }

    public function setup() {

        parent::setup();
        $this->setWidgets(array(
            'mar_id' => new sfWidgetFormInputHidden(),
            'mar_nombre' => new sfWidgetFormInput(),
        ));

        $this->setValidators(array(
            'mar_id' => new sfValidatorPropelChoice(array('model' => 'Marcas', 'column' => 'mar_id', 'required' => false)),
            'mar_nombre' => new sfValidatorString(array('max_length' => 100, 'required' => true)),
        ));

        $this->widgetSchema->setNameFormat('marcas[%s]');

        $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    }

}
